`import play.modules.gae.GAE
`args String title, String header, String recipeCode
<!DOCTYPE html>

<html>
<head>
<title>${title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="revisit" content="2 days" />
<meta name="revisit-after" content="2 days" />
<meta name="document-state" content="Dynamic" />
<meta charset="UTF-8">
<link rel="stylesheet" media="screen"
	href="/public/stylesheets/main.css">
<link rel="stylesheet" media="screen"
	href="/public/stylesheets/bootstrap.css">
<link rel="stylesheet" media="screen"
	href="/public/stylesheets/bootstrap-responsive.css">
<link rel="shortcut icon" type="image/png"
	href="/public/images/favicon.png">
<link rel="stylesheet" type="text/css"
	href="/public/stylesheets/jquery.lightbox-0.5.css" media="screen" />
<script src="/public/javascripts/jquery-1.7.2.min.js"
	type="text/javascript"></script>
<script src="/public/javascripts/jquery.lightbox-0.5.min.js"
	type="text/javascript"></script>
<script src="/public/javascripts/bootstrap.js" type="text/javascript"></script>
<meta name="keywords" content="keywords" />
<meta name="description" content="description" />

<!-- Google Analytics -->
<script type="text/javascript">
	var _gaq = _gaq || [];
	_gaq.push([ '_setAccount', 'UA-21120445-12' ]);
	_gaq.push([ '_trackPageview' ]);

	(function() {
		var ga = document.createElement('script');
		ga.type = 'text/javascript';
		ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl'
				: 'http://www')
				+ '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0];
		s.parentNode.insertBefore(ga, s);
	})();
</script>
<!-- /Google Analytics -->

<!-- Yandex.Metrika counter -->
<script type="text/javascript">
	(function(d, w, c) {
		(w[c] = w[c] || []).push(function() {
			try {
				w.yaCounter13639918 = new Ya.Metrika({
					id : 13639918,
					enableAll : true,
					webvisor : true
				});
			} catch (e) {
			}
		});

		var n = d.getElementsByTagName("script")[0], s = d
				.createElement("script"), f = function() {
			n.parentNode.insertBefore(s, n);
		};
		s.type = "text/javascript";
		s.async = true;
		s.src = (d.location.protocol == "https:" ? "https:" : "http:")
				+ "//mc.yandex.ru/metrika/watch.js";

		if (w.opera == "[object Opera]") {
			d.addEventListener("DOMContentLoaded", f);
		} else {
			f();
		}
	})(document, window, "yandex_metrika_callbacks");
</script>
<noscript>
	<div>
		<img src="//mc.yandex.ru/watch/13639918"
			style="position: absolute; left: -9999px;" alt="" />
	</div>
</noscript>
<!-- /Yandex.Metrika counter -->


</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand">Что приготовить</a>
				<ul class="nav">
					<li `if (request.action.equals("Application.index")){`class="active"`}`>
						  <a href="@{Application.index()}">Главная</a></li>
					<li `if (request.action.equals("Application.recipes")){`class="active"`}`>
						  <a href="@{Application.recipes()}">Рецепты</a></li>
					<li `if (request.action.equals("Application.addRecipeForm")){`class="active"`}`>
					  <a href="@{Application.addRecipeForm()}">Добавить рецепт</a></li>
				</ul>
				<ul class="nav pull-right">
				`if (GAE.isLoggedIn()) {
					<li class="dropdown">
						<a class="dropdown-toggle" data-toggle="dropdown" href="#">${GAE.getUser()}<b class="caret"></b></a>
						<ul class="dropdown-menu">
							<li><a href="@{Application.logout()}">Выйти</a></li></li>
						</ul>
					</li>
				`} else {
					<li>
					`if recipeCode != null
						<a href="@{Application.login(request.action, recipeCode)}">Войти</a>
					`else
						<a href="@{Application.login(request.action)}">Войти</a>
					`
					</li>
				`}
				</ul>
			</div>
		</div>
	</div>

	<div class="container">

		<div class="content">

			<div class="page-header">
				<h1>${header}</h1>
			</div>

			<div class="row">
				<div class="span12">`doLayout`</div>
			</div>

		</div>

		<footer>
			<p>
				<!-- put links here -->
			</p>
		</footer>

	</div>

	<!-- 	Jq Lightbox -->
	<script type="text/javascript">
		$(function() {
			// This, or...
			$('article.details .recipeImg a').lightBox(); // Select all links in the page
			$('article.details .recipeImgTwo a').lightBox(); // Select all links in the page
		});
	</script>
</body>
</html>